﻿using UnityEngine;

namespace TC
{
    public class EnterInstance : FunctionNode
    {
        public ValueInput<int> target;
        public ValueInput<int> cfgId;

        public override void OnCreate()
        {
            base.OnCreate();

            target = this.AddValueInPort<int>("target");
            cfgId = this.AddValueInPort<int>("configId");
        }

        public override void Execute(Dispatcher chain)
        {
            base.Execute(chain);

            Debug.Log("EnterInstance id: " + target.Value + ", configId: " + cfgId.Value);

            chain.Call(flowOut);
        }
    }
}
